<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1:hover {
            color: #FF0000;
        }
    </style>
</head>
<body>
    <h1>hover伪类选择器</h1>
    <ul>
        <li>:hover伪类选择器表示鼠标悬停在元素内部时所呈现的效果</li>
    </ul>
    <div class="div1">我是div，鼠标悬浮在我上面我会变颜色</div>
</body>
</html>